<?php

/**
 * KTDAction form.
 *
 * @package    s-test
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class KTDActionForm extends BaseKTDActionForm
{
  public function configure()
  {
     $this->disableLocalCSRFProtection();

     $this->setWidgets(array(
         'title' => new sfWidgetFormInputText(array('label'=>'Titre de l\'action')),
         'body'  => new sfWidgetFormKTDTextarea(array('label'=>'Action à rédiger'))
         
     ));
     $this->setValidators(array(
            'title' => new sfValidatorString(array('required' => false)),
            'body'  => new sfValidatorString(array('required' => true))
     ));
     
     $this->widgetSchema->setNameFormat("ktd_action[%s]");
  }
}
